// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   getThreeKinds1.java

package include.get_three_kinds;

import include.nseer_db.nseer_db;
import java.sql.ResultSet;

public class getThreeKinds1
{

	public getThreeKinds1()
	{
	}

	public String[] getThreeKinds(String unit_db_name, String table_name, String field_name, String file_ID)
	{
		String three_kinds_chain[] = new String[2];
		nseer_db db = new nseer_db(unit_db_name);
		try
		{
			String sql = (new StringBuilder("select chain_ID,chain_name from ")).append(table_name).append(" where ").append(field_name).append("='").append(file_ID).append("'").toString();
			ResultSet rs = db.executeQuery(sql);
			if (rs.next())
			{
				three_kinds_chain[0] = rs.getString("chain_ID");
				three_kinds_chain[1] = rs.getString("chain_name");
			}
			db.close();
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return three_kinds_chain;
	}
}
